package org.dzq.designmode.builder;

/**
 * @ClassName: Test
 * @Package: org.dzq.designmode.builder
 * @author: 越
 * @date: 2023/6/13 21:12
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        Director director = new Director(new CakeBuilder());
        Cake chocolateCake = director.constructChocolateCake();
        Cake fruitCake = director.constructFruitCake();
        Cake tiramisuCake = director.constructTiramisuCake();
        System.out.println(chocolateCake);
        System.out.println(fruitCake);
        System.out.println(tiramisuCake);
    }
}
